/**
 * Copyright(c) 2013-2015 by Puhuifinance Inc.
 * All Rights Reserved
 */
package com.puhui.chome.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.puhui.chome.manager.MonitorSystemManager;
import com.puhui.chome.model.MonitorSystem;
import com.puhui.chome.service.MonitorSystemService;

/**
 * @author dingxingang
 */
@Service
public class MonitorSystemServiceImpl implements MonitorSystemService {

    @Autowired
    private MonitorSystemManager monitorSystemManager;

    /**
     * 添加
     */
    @Override
    public void addMonitorSystem(MonitorSystem monitorSystem) {
        monitorSystemManager.addMonitorSystem(monitorSystem);
    }

    /**
     * 获取
     */
    @Override
    public MonitorSystem getMonitorSystemById(Long id) {
        return monitorSystemManager.getMonitorSystemById(id);
    }

    /**
     * 查询总记录数
     */
    @Override
    public long findMonitorSystemCount(Map<String, Object> param) {
        return monitorSystemManager.findMonitorSystemCount(param);
    }

    /**
     * 查询列表
     */
    @Override
    public List<MonitorSystem> findMonitorSystem(Map<String, Object> param) {
        return monitorSystemManager.findMonitorSystem(param);
    }

    /**
     * 修改监控
     * 
     * @author dingxingang
     * @param monitorItem
     * @return
     */
    public int updateMonitorSystem(MonitorSystem monitorSystem) {
        return monitorSystemManager.updateMonitorSystem(monitorSystem);
    }

}
